var t = require("../../../../wxParse/wxParse.js"), o = getApp();

Page({
    data: {
        id: "",
        all_amount: "",
        order_price: "",
        ratio: "",
        star: "",
        amount: "",
        amount_surplus: "",
        created_at: ""
    },
    onLoad: function(t) {
        this.getData();
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    getData: function() {
        var a = this, e = o.getNetAddresss("plugin.member-return.frontend.log.index");
        e += "&log_id=" + this.options.id, o._getNetWork({
            url: e,
            success: function(e) {
                var n = e.data;
                if (1 === n.result) {
                    if (o._isTextEmpty(n.data.log.has_one_queue)) a.setData({
                        star: ""
                    }); else {
                        for (var s = "", r = 0; r < n.data.log.has_one_queue.star; r++) s += "<icon  class='iconfont icon-extension-stars icon-custom-undefined' style='font-size: 1rem; color: rgb(241, 83, 83);'></icon>";
                        t.wxParse("rules", "html", s, a), a.setData({
                            star: s
                        });
                    }
                    a.setData({
                        all_amount: n.data.log.has_one_queue.amount,
                        order_price: n.data.log.order_price,
                        ratio: n.data.log.ratio,
                        amount: n.data.log.amount,
                        amount_surplus: n.datalog.has_one_queue.amount_surplus,
                        created_at: n.data.log.created_at
                    });
                } else wx.showToast({
                    title: n.msg,
                    icon: "none"
                });
            },
            fail: function(t) {
                console.log(t);
            }
        });
    }
});